<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<!DOCTYPE html>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>档案管理系统</title>
<link type="text/css" rel="stylesheet" href="css/main.css">

</head>
<body>
	<div id="head" role="aa">
		<span style="box-shadow: -10px -10px 5px black;padding:0px 10px">人事档案管理系统</span>
	</div>

	<div id="content">
		<div id="content-left">
			<ul>
				<li><a href="findall.jsp" target="iiframe" onclick="hide()">查询所有</a></li>
				<li><a href="findwhere.jsp" target="iiframe" onclick="findwhere();">条件查询</a></li>
				<li><a href="modiself.jsp" target="iiframe" onclick="hide()">修改信息</a></li>
			</ul>
		</div>

		<div id="content-right">
			<div id="content-right-where">
				<form name="form1" action="">
					最大年龄<input type="text" name="minage" >
					最大年龄<input type="text" name="maxage" >
					<a href="#" onclick="findwhere2();return false" target="iiframe">查询</a>
				</form>
			</div>
			<iframe  name="iiframe" id="iiframe" frameborder="0" src="default.jsp"></iframe>
		
		</div>
	</div>

	<div style="clear: both"></div>

	<div id="footer">
		<p>关于系统 | 广告服务 | 招聘信息 | 客服中心 | Q Q留言 | 网站管理 | 会员登录 | 购物车</p>
		Copyright &copy;2016 - 2018 Li Yi. All Rights Reserved

	</div>
	
	<script type="text/javascript">
	function findwhere(){
		var obj=document.getElementById("content-right-where");
		obj.style.display="block";
		
	}
	
	function findwhere2(){	
		var minage=form1.minage.value;
		var maxage=form1.maxage.value;
		//window.location.target="iiframe";
		//window.top.location.href="findwhere.jsp?minage="+minage+"&maxage="+maxage;//跳到新页面显示
		//window.parent.location.href="findwhere.jsp?minage="+minage+"&maxage="+maxage;//跳到新页面显示
		//window.top.iiframe.location.href="findwhere.jsp?minage="+minage+"&maxage="+maxage;//正确
		window.iiframe.location.href="findwhere.jsp?minage="+minage+"&maxage="+maxage;//正确
		
		//以上在js中对href定位到框架iiframe中确实比较麻烦，这里设置了href，则链接标记里写target失效。不如直接在form上设置target,在这里直接写submit()即可。
	}
	
	function hide(){
		var obj=document.getElementById("content-right-where");
		obj.style.display="none";
	}
	</script>
	
	
</body>
</html>